﻿Public Class NhanVien

    Private _Hoten As String
    Public Property HoTen() As String
        Get
            Return _Hoten
        End Get
        Set(ByVal value As String)
            _Hoten = value
        End Set
    End Property

    Private _LCB As Double
    Public Property LuongCanBan() As Double
        Get
            Return _LCB
        End Get
        Set(ByVal value As Double)
            _LCB = value
        End Set
    End Property
    Public Overridable Sub Nhap()
        Console.Write("Nhap Ho ten: ")
        _Hoten = Console.ReadLine()
        Console.Write("Nhap luong can ban: ")
        _LCB = Convert.ToDouble(Console.ReadLine)
    End Sub
    Public Overridable Sub Xuat()
        Console.Write("Ho ten: {0}", _Hoten)
        Console.Write(",LCB: {0}", _LCB)
    End Sub

    Public Overridable Function TinhLuong() As Double
        Return _LCB
    End Function

End Class
